/**
 * 
 */
package com.an.nopro.app;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author Administrator
 * MVC 配置类
 */
@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {

	@Override
	public void addViewControllers(ViewControllerRegistry registry) {

		// 映射ws.html
		registry.addViewController("/ws").setViewName("/ws");
		//增加页面
		registry.addViewController("/login").setViewName("/login");
		registry.addViewController("/chat").setViewName("/chat");
		registry.addViewController("/action").setViewName("/btandag/action");
	}
}
